import request from '@/utils/request'

// import qs from 'qs'

export function login(username, password) {
  let url = '/api/v1/security/login'
  let params = {
    username: username,
    password: password
  }

  return request.post(url, params)
}

export function logout() {
  let url = '/admin/v1/auth/sys-user/logout'
  return request.get(url, null)
}

export function getAuthorities() {
  let url = '/api/v1/security/authorities'
  return request.get(url, null)
}
